package io.github.wanggit.website.demos.zipkin_service_5.service;

import io.github.wanggit.antrpc.commons.annotations.RpcMethod;
import io.github.wanggit.antrpc.commons.annotations.RpcService;
import io.github.wanggit.website.demos.zipkin_api_1.CheckService;
import org.springframework.beans.factory.annotation.Autowired;

@RpcService
public class CheckServiceImpl implements CheckService {

    @Autowired
    private UserService userService;

    @RpcMethod
    @Override
    public String check(String content) {
        userService.listUsers();
        return "Check: " + content;
    }
}
